
#include "Gui.h"

#include <opencv2/opencv.hpp>

int main(int argc, char *argv[])
{
    //-----------------------------------【初始化】--------------------------------------------
    // brief：类初始化，传入参数
    //------------------------------------------------------------------------------------------------
    cv::Mat img=cv::Mat::zeros(cv::Size(640,480),CV_8UC3);
    Gui gui(img,cv::Point2f(299,266),0.5);

    //-----------------------------------【检测结果可视化】--------------------------------------------
    // brief：
    //------------------------------------------------------------------------------------------------
    //假设检测结果：
    std::vector<cv::Point2f> armor_rect;
    std::vector<cv::Point2f> attitude_angle;

    armor_rect.push_back(cv::Point2f(39,40));
    armor_rect.push_back(cv::Point2f(20,76));
    armor_rect.push_back(cv::Point2f(106,66));
    armor_rect.push_back(cv::Point2f(92,106));

    attitude_angle.push_back(cv::Point2f(66,30));
    attitude_angle.push_back(cv::Point2f(20,100));
    attitude_angle.push_back(cv::Point2f(109,75));

    double pitch = 15.0;
    double yaw = 25.0;
    double dist = 115.0;
    //绘制
    gui.drawingInfo(img,armor_rect,attitude_angle,pitch,yaw,dist);

    cv::waitKey();
    return 0;
}
